Component({
  // 组件的属性列表
  properties: {

  },
  // 组件的初始数据
  data: {
    title: "",
  },
  attached: function() {
    // 获取config
    wx.request({
      url: "https://www.yifale.com/api/common/xcx_config",
      header: {
        'Accept': 'application/json',
        'content-type': 'application/x-www-form-urlencoded',
      },
      success: (res) => {
        var data = res.data.data;
        this.setData({
          title: data.slogan
        })
      },
    })
  }
})